import requests from "./request";
import qs from 'qs'


export const register = (username, phone, password) => {
    return requests.post('/user/register', qs.stringify({
        username,
        phone,
        password
    }))
}

export const login = (phone, password)=>{
    return requests.post('/user/loginUser',qs.stringify({
                phone,
                password
    }))
}

export const isLogged = (token)=>{
    return requests.post('/user/checkLogin',qs.stringify({
        token
    }))
}